public class E {
  public static void main(String args[]) {
    A a=new B();
    System.out.println(a.f(3,5));
    B b=(B)a;
    System.out.println(b.g(3,5));
  }
}
